<#--
<form></form>

操作结束：
	1、提示
	2、转向
	3、刷新
-->
<#macro form 
	id="" action="" submitReflush="" submitForward="list.do" submitAfter="" showResult="true" col='0'
	method="post" target="" enctype=""  width="100%" labelWidth="20" required="false"  name=""
	class="" style="" size="" title="" disabled="" 	onsubmit="" 
>
<form class="form-horizontal"<#rt/>
 	method="${method}"<#rt/>
 	action="${action}"<#rt/>
 		col=4<#rt/>
		<#if id!=""> id="${id}"</#if><#rt/>
		<#if target!=""> target="${target}"</#if><#rt/>
		<#if enctype!=""> enctype="${enctype}"</#if><#rt/>
		<#if onsubmit!=""> onsubmit="${onsubmit}"</#if><#rt/>
		<#include "common-attributes.ftl"/><#rt/>
		>
		<br />
	<div class="form-group">
		<#assign i = col?number>
		<#nested i,true/>
	</div>
	 <div class="space-4"></div>
	<hr />
	<div class="clearfix form-actions">
		<div class="col-md-offset-3 col-md-9">
			<button class="btn btn-info" type="button"  id="submitBtn">
				<i class="icon-ok bigger-110"></i>
					提交
			</button>

			&nbsp; &nbsp; &nbsp;
			<button class="btn" type="reset" id="resetBtn">
				<i class="icon-undo bigger-110"></i>
					重置
			</button>
		</div>
	</div>
</form>

 <script type="text/javascript" src="${res}/ui/js/form.js"></script>
 <script type="text/javascript">
    	$(function(){
    		var form = new Form($("#${id}"));
    		form.setUrl("${action}");
    		form.setReurl("${submitForward}");
    		$("#submitBtn").on("click",function(){
    			form.submit();
    		});
   		});
 </script>
</#macro>
